class Student:
    def student(self,name):
        print(name)
    # 同名函数 上面的student 废掉  无法执行
    def student(self,name,age):
        print(name,age)

class GoodStudent(Student):
    def student(self,*args):
        print(args)

class BadStudent(Student):
    def student(self,*args,**kwargs):
        print(args,kwargs)

s = Student()
s.student("101",24)
gs = GoodStudent()
gs.student("102","男")
bs = BadStudent()
bs.student("103","男",age=23)
